home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / text / hyper / ADtoHT2_1.lha / Source.lha / MyLib.lha / stdio / vfprintf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-04  |  429 b   |  24 lines

  1. #include <stdio.h>
  2. #include <stdarg.h>
  3. #include <errno.h>
  4.  
  5. #include <proto/dos.h>
  6.  
  7. /************************************************************************/
  8.  
  9. #undef vfprintf
  10.  
  11. int vfprintf(FILE *Stream, const char *FormatString, va_list Params)
  12.  
  13. {
  14.   int Result;
  15.  
  16.   Result=VFPrintf(__fileno(Stream), (char *)FormatString, Params);
  17.   if (Result==-1)
  18.     {
  19.       Stream->Flags.Error=1;
  20.       errno=IoErr();
  21.     }
  22.   return Result;
  23. }
  24.